<template>
  <div class="box-container">
    <four-angel :boxTitle="boxTitle">
      <span :class="boxTitle ? 'boxTitle' : ''">{{ boxTitle }}</span>
      <div class="main-content">
        <slot></slot>
      </div>
    </four-angel>
  </div>
</template>

<script>
import fourAngel from "../fourAngel/index";
export default {
  name: "boxContainer",
  props: {
    boxTitle: {
      type: String,
      default: "",
    },
  },
  components: {
    fourAngel,
  },
};
</script>

<style lang="scss" scoped>
.box-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  .boxTitle {
    font-size: 16px;
    font-weight: 400;
    color: #52ffff;
    padding-left: 12px;
    /* padding-top: 9px; */
    padding-right: 45px;
    padding-bottom: 0px;
    margin-top: 5px;
    background: linear-gradient(to right, #00baff, rgba(0, 186, 255, 0.5));
    -webkit-clip-path: polygon(0px 0, 100% 0, 80% 100%, 0px 100%, 0 100%);
    clip-path: polygon(0px 0, 100% 0, 85% 100%, 0 100%, 0 100%);
  }
  .box {
    padding-left: 12px;
    padding-top: 3px;
    padding-right: 45px;
  }
  .main-content {
    width: 100%;
    height: 100%;
  }
}
</style>
